Yes when you have a tooth infection and then you kiss somebody that person can get the tooth infection through kissing or mouth to mouth contact.
If someone has a tooth infection you should avoid kissing that person until there tooth infection is gone to prevent spreading the tooth infection from person to person.
That's all it takes to spread the tooth infection bacteria from the persons mouth to the other persons mouth and then you risk getting a tooth infection yourself from kissing the person with the tooth infection.