Hi and welcome to AC!
What phone and what method of root?
Where you present when your phone got rooted?
Typically, just the act of root is safe but they could have installed any number of programs if you weren't watching or present.
Is something happening that makes you think that?