The regulation of protein transport to the nucleus by phosphorylation.