Arduino keeps crashing during serial print

My MQTT keep alive time is set to 60 sec and since I am transmitting every 10 secs in my actual code, will it still disconnect randomly or will transmitting every often keeps it alive all the time?