Yes, MetaMask users say that it is indeed safe to buy ETH on MetaMask.
However, it is strongly recommended that you only use the wallet to store a small amount of your crypto, and keep the bulk of your crypto in a hardware wallet.
Mentioned in this answer

MetaMask
Brings Ethereum to your browser