That is not quite right. Here are several sources
Can the president and the vice president be from the same state?
Yes, you are indeed correct. Electors from a certain state cannot vote for president and vice president who are also from that same state, but electors from other states can.