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.

An example of census data
An example of census data from the United States Census Bureau. Source: https://data.census.gov

Where do I get census data?