No, you'll lose weight if you maintain a caloric deficit. But 5 hours of sleep isn't healthy and will lead to other issues. I'm no doctor but I believe sustained sleep dep will interfere quite heavily with hormones, repair, building muscle... essentially, every favorable adaptation to exercise...