No. "Printing to PDF" essentially captures an image of the website and none of the code contained within it. That said, before visiting a website like that you should likely make sure that your browser isn't vulnerable to whatever malware it's distributing.