Not true. Amendment 12 passed in 1804 does not forbid it.
Before that, the VP was whoever came in 2nd.
The Constitution does not forbid the President and Vice President being from the same state, but electors can only vote for one person from their state. So if two candidates from California were on the ballot, the electors could only vote for one of them.