Can you buy a gun in Colorado if you have a mmj card?

No. USC18§922(g)(3) explicitly states that a user of illegal drugs (marijuana is still illegal under federal law) may NOT possess or purchase a firearm. Possessing marijuana and a firearm concurrently IS a federal felony, and Colorado police officers will still arrest you for it.