Can a transgender get in trouble for touching a little boy?

If by touching you mean, touching in an inappropriate way, that is illegal for anyone, regardless of gender.

Keep in mind, however, that because many people are uncomfortable with transgender individuals, even touching a child in an "appropriate way" could be misconstrued as inappropriate. It is an unfortunate fact. A transgender individual should take care not set themselves up for potential law suits, even if they are doing nothing wrong.

For example, it is a similar situation to a male child care provider. A child in the lap of a female child care provider is nothing to worry about, but a child in the lap of a male child care provider instantly raises suspicions, even if the male child care provider intends no wrong and is as legitimate as the female child care provider.