Yes, although prosecutions for this are very rare.