Is census data a primary source?

Yes. Census data is a primary source because it is the official process of methodically collecting information about a certain topic in a specific time period. Meaning, that it is a first-hand account of a topic, a.k.a. a primary source.

Where do I get census data?