Yes, gambling is allowed. The prerequisite is, of course, that you are of age and that the online casino Switzerland is in possession of a valid licence.