Yes this is used by spammers.


You can change the relay flag to prevent this, and other ways depending on network configuration.