Is it true like attracts like?

if two people like each other they must like the same thing right? like if a girl want to have kids she would like a guy who wants to have kids right? so even if both hated the same person they must still be in agreement with each other. is this true people who like the same things tend to like each other?
Is it true like attracts like?
Post Opinion