Yes.
Miners can also form pools, and combine their compute power remotely, sharing the block rewards when a block is won.
This helps balance out the volatility of competition and gives a more predictable "cashflow" if you are mining on a scale that requires a large electric bill.
Or you can solo mine, my favorite. 🥰