I do that all the time, although I have to take the front wheel off and put the rear wheel on the floor. Better than taking the time to put the trunk rack on, plus the rack scratches the bike (and the car if I cared about it), plus the bike is less likely to be stolen from inside the car than outside should I need to run errands on my way home.
__________________
It's like riding a bicycle