Someone please help me figure out hair color situation

Could I have two people with the same name though? Like how would I know the difference between both of them when I code