If a guys penis touched my vagina can it spread infection?

Yes. First of all, penises do not "touch" a vagina, rather full or partial intercourse is more accurate. If infection or one of the stds is present, then yes, infection could spread this way to you.