It can when you search for an item on Amazon and then see ads for that very same item when you next log on to Facebook.
But if you know where to look, you can minimize it from happening to you.
Facebook Mobile App
Go to Settings and then tap Ads
Tap "Can you see online interest-based ads from Facebook?"
This will stop interest-based ads across all of your devices.
To change the option on your PC, visit facebook.com/ads/settings.