Simply installing an aftermarket air intake which has an EO number (is CARB approved) yet not designed for use specifically on your 2007 Honda Civic, will still cause a smog check failure. Yes, you may switch out the current non-CARB approved air intake with an approved aftermarket unit however the air intake unit must have an EO (executive order) number pertaining specifically to a 2007 Honda Civic.
More information on California Legal Aftermarket Emission Components