Yes, reputable casinos offer easy access to self-exclusion. Usually, you contact the support, who will then take care of everything else. In some online casinos there is even a button with which you can activate it yourself immediately.