Preventing stranger anxiety by showing pictures

Gi
My baby is 5 months. When he's 8 months, he'll be meeting some family for the first time. I came up with something pretty genius tbh, lol. What if I show him pictures of everyone often? Would that help his stranger anxiety? He'll recognize them and there won't be a chance of him being scared. Make sense? Anyone try it before?