I do this all the time.
I make a 3 gallon mild in the big fermenter. Rack that beer into mini keg and immediately rack the imperial stout wort onto the full cake.
Mind you, this causes a nuclear powered fermentation to start almost instantly. Keep Carboy near floor drain for the first day.