There are ways to earn bitcoin but the best way for you to earn as a beginner is to buy and hodl bitcoin.
Be mindful of choosing a trusted and legit exchange.
Know the basics of trading and investing to avoid risks.
You can also try joining in bounty campaigns to earn altcoins which you could trade with bitcoin.
Reading threads in here would help you a lot.