Funerals and young kids

Is it inappropriate to take a two year old and a new born to a funeral ? It’s for my great uncle out of state

Have you taken young kids to a funeral

? Any tips or suggestions? I’m just worried about the effect on my kids