Yes, it would be a sexually transmitted infection. But it would be unlikely to render you infertile. If you had his penis in your mouth with no protection, then it is possible bacteria or yeasts were passed to one another. If you've got a sore mouth, ulcers or a yeasty substance growing on your tongue - I'd seek advice from your GP.