Yes, it is an idiom. It is often used to tell someone after a relationship with a boyfriend or girlfriend didn't work out. It is meant to make them feel better, because there are plenty of other people in the world and there shouldn't be a problem finding someone new.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.