Zend certified PHP/Magento developer

Is it possible to exploit a server on a different subnet?

I am a beginner in network penetration testing. I recently overheard someone say it is possible to exploit machines on a different subnet than the one I am on. Is this possible and if so how do I go about it?