Yes- be sure to throw your main breaker first, then start the generator.
The proper sequence to follow when the electrical power is restored is to shut down the generator, then open (turn off) all of the sub-breakers first, then close (turn on) the main before turning on the sub-breakers one at...