regardless of whether youre sinning or not prayer is still compulsory there is a narration something to the effect where a man came to the prophet sa and said this person prays in the night and steals in the morning and he replied prayer should stop him from doing that