Yes, an employer can forbid gambling at work by employees, even if the employer sells lottery tickets. Employers have full discretion to set rules at work, and those rules could include no gambling--or also no social media, no use of cell phones, no surfing the web, no personal phone calls, etc. Employers decide what goes on during work hours or in the workplace--employees who don't want to work under those conditions can look for different jobs.