Many coasters can run safely in the rain. Exceptions tend to be those with tyre drives (which don't work when wet) and old-fashioned braking systems (same problem). That said, riding can be very uncomfortable for passengers, especially in the front of the train.