It is possible, yes, but you'll have to be extremely careful doing so.
I would not suggest automatic breaks tbh, it's better to pause/stop the bot when you go to the bathroom grab some food etc.
As this will be more realistic then botting and breaking every time at the same time frames.
PS: And even if you do it this way, there is still a chance you could get banned but will be very small compared to automatic breaks n such.