I think that yes, it could be an example of diverting peer pressure.
If your peers are forcing you to smoke, but you don't want to, you could say this and hope that this would be a sufficient answer, it diverts your unwillingness to smoke to your parents, and so the conflict with a peer is also diffused.