Yes. I also use IBController (https://github.com/IbcAlpha/IBC) to keep Gateway up and running the whole week.
I start this combination on Sunday evening and let it run the whole week until Saturday morning. During the week I only do some monitoring of log files to see how things are going. I am able to interfere with my program, but hardly ever do that.
Because Gateway normally would auto logout after awhile!?