Yes! Actually I think it's important to teach your child when to lie, and when not to. In general people automatically jump to the conclusion that lieing is bad, not thinking about all the harmless lies they themselves tell on an everyday basis. In our society knowing when to lie and how to do it politely is part of having good manners.
For example, how many times have you heard a child point out someone's flaws? How often to you hear of children telling about gifts or surprises they arent supposed to talk about? And how often do you hear of that one kid at school that ruins Santa Clause for everyone else?
White lies are a necessary part of life, and a natural part of being human. Lieing to your kids is also necessary sometimes in order to help them understand things usually beyond their comprehension or to encourage creative and imaginative growth.
I have this debate all the time with other mothers, and I personally would rather instill the ability to descern between the right time and the wrong time to lie, rather than humiliating some stranger in the supermarket.
But I suppose it's really up to the individual parent, as with most parenting decisions, what is right for one may be wrong for another. So if your child cannot grasp the difference between good and bad lies, than maybe you should just tell them all lies are bad.