Yeah sure but it cost more work to mine gold than to mine Bitcoin.
And not to mention that it would take sometime and a lot of worker just to mine gold than to mine a crypto.
And you could mine crypto anywhere you just have to set up your mining rigs and have an internet unlike gold you need to find some spot to work efficiently.