Probably not, in itself. Just a routine question, probably not. But if the officer suspects or has information short of "probable cause", he has other options. Some would view refusal to answer a question as hostile.
i always want to cooperate to the fullest extent possible with law enforcement officers. i never view any incident from a viewpoint of a protracted legal fight.
Above all you do not want to lie to him/her.