
You can buy and sell anytime if you always have an effective strategy to maintain or earn more value.
If you're a beginner, then the best thing for you to do is just buy and market price

and learn how you can eventually find better ways to get more value for what you spend. You learn how to read order books. You learn what it means to be a maker/taker. You learn how to sell an asset, say BTC, when it's high and buy back in at a discounted price.
If you know how to reference fundamentals and technical analysis, one can buy and get the most bang for their buck. Not only will you learn how to buy and hodl, you'll learn how to sell and accumulate. That takes time observing the markets, learning the concepts/strategies, mock trading/trading, and trial and error infused with skill and luck.
Until then, buy and hold.