Generally it doesn't matter whether you install CPU before you put in the Mainboard or after.
Depending on the case and whether you have a fancy aftermarket HS which comes with a backplate you may need to install it before you mount the mainboard.
That's what I would recommend anyway, because you'll have more space to work.