How far away are we talking about, here - 50 feet to the corner, or 200 yards to the property line and access road? It makes a bit of difference, IMO. My understanding, given the wording of the original poster (and despite the apparent misunderstanding of subsequent posts), the car is actually parked or at least stopped out in front of the house at an undetermined distance - and it's not clear if it's with a rifle or pistol. So...
Would I shoot someone just "driving by" my house and shooting? Probably not - I'd let them pass unless I was under direct fire (as opposed to just someone pelting my house). I'd be safer that way, and it's unlikely I'd be able to get a shot off before they're gone anyway.
Now, if the car is stopped and they're unloading, or they're shooting from a distance, hell yes I'd return fire. And who said anything about taking out their car with a firearm? I'd think your priority would be to make them stop shooting at you, which means shooting them: either they die, or they are wounded and attempt to leave. In such a case, you'd want their vehicle to be functional.
So my short answer is: why not?