I've done periods of what I call "sleep/work", where I wake up with my laptop next to my head, immediately start working, and work all day: definitely not leaving my house and usually only even leaving the room to grab deliveries or use the restroom. I'd work until I literally couldn't stay awake, with the laptop next to my head and ready for when I wake up to continue. So literally for entire days I'll have done nothing but sleep and work, with even eating being done while working.
You can certainly do it, but it's an (unproductive) expression of mental illness that will additionally worsen every facet of your existence in short order. Elon's definitely mentally ill too: either for doing it regularly or being enough of a sociopath to claim that others should do it on his behalf.