That sounds safe!
It's safer than this, and a graphite coating on the steel-plate used to propel the ship is a few inches which, which, surprisingly, is protectiong against the bombs enough. The steel-plate is a few feet thick.

The nuclear bomb launcher out the back a km or two, and then it detonates, propelling the ship.