Research suggests that it is perfectly normal for kids to pretend to play with toy guns from time to time, and it might even help kids self-regulate better in real life.
On a more concerning note, trying to educate kids about real guns and gun safety can be difficult, as other research shows that kids do not retain or employ such lessons.