Yes, you can! Unlike the GTA 5 campaign, sleeping in GTA Online will not make a difference in your in-game clock, so sleeping in GTA Online is pretty useless.