Yes, stds can be spread by any form of sexual contact.
For instance, you can get gonorrhea
in your throat from oral sex
(a lovely thought in the morning). Many other stds are spread from simple skin-to-skin contact or contact with infected body secretions and certainly those things apply to other forms of sexual contact.