Quick question regarding paint

I am going to be assembling an ho scale rolling stock kit. Should I paint and seal it pre assembly or post assembly?