Yeah, that is a very likely cause. Make sure to get a quality power supply and a decent MicroSD card (as in, not the cheapest one on Amazon) so it doesn't fail after a few months. I have Raspberry Pis that have had uptimes of years+ with no issues.
You want to keep it plugged into a monitor for a while and watch out for the undervolt warning (either a lightning bolt or a rainbow in the corner of the screen). Improving the cooling, the quality of the USB cable, and the power supply are also really good ideas.