To migrate all your emails from Outlook to Gmail, you'll need to link your Gmail and Outlook accounts, or perform a one-time import.
Outlook's spam folder automatically filters potentially unwanted emails, which you can access later.