Yes, the PSP can connect to the internet and play online much like the Xbox 360, but the hardware you need differs between the two. For the PSP, you'll want access to a wireless network, typically through a wireless router it can connect to over Wi-Fi.
The Xbox 360, meanwhile, requires either a wireless router paired with a wireless adapter, or a direct wired connection using a sufficiently long Ethernet cable.
Once each device is properly connected to your network, both can take their online features global, letting you play and interact with others around the world.