No. Public key cryptography is impossible if P=NP. What we are left with is shared one-time-pads that can be arranged using quantum key distribution.
I am not an expert so I will simply link the Wikipedia article on Computational Complexity Theory as my "source".
https://en.m.wikipedia.org/wiki/Computational_complexity_the...