Yes. It is imperative that we abstain from gambling in front of our children, particularly if they are old enough. Whilst both spouses are allowed to gamble, this is only an agreement between the two of them as not everyone is aware of this type of circumstance. To be clear, even if my wife does decide to gambling, it will be with my money, thus I won't let her do it in the first place. Considering that my spouse and I are gamblers, what use will it be? In the end, I don't think it will have any beneficial effects.
And what age do you consider to be old enough, if I may ask? And if you said they were old enough for them to understand gambling, then what's the point of parents not gambling in front of their kids?
If the child is old enough for him or her to gamble, then there is no point for their parents to hide their gambling habits from them because, without them gambling in front of them, they will still go ahead and gamble whenever they want.
If the child is old enough, sometimes I think it's best if the parent can discuss gambling with them in order for them to share gambling tips and experiences with them. This helps put them on the right track.