Should I do a all nighter to reset

So I been sleeping really bad the past few weeks getting 5 hrs or 2 hrs of sleep and I’m thinking of staying up all night. I need to sleep around 3 pm since my job is 3 am is this Bad or Good?