Absolutely! YW is a term safe for kids to use! It is a friendly and respectful term to answer someone when he's said thanks. Teaching "YW" would teach the children manners and most importantly create a positive communicating atmosphere. It's important for kids to realize the value of expressing gratitude and to answer appreciatively.
Using YW might thus encourage them to bring better confidence in social situations while making great friendship ties with peers.
Know more: https://radarro.com/yw-meaning/