Can i format the operating system drive on my laptop?

My lenovo thinkpad 13 has been randomly turning off,and when I try to turn it on it doesn’t power up for at least a minute.
At first I thought it was overheating issues so I cleaned the fan and replaced the thermal paste, but the problem has persisted and now its shutting down a lot. Even if it doesn’t feel hot at the bottom it turns off.