Your garage door is the largest and heaviest moving system in your home. Therefore, it should have safety features that prevent it from closing on a person or a pet or crushing something important.
However, not all garage doors have these features. Garage door safety features were not a requirement on garage door openers until the early 1990s, so if your garage opener was installed before 1991, there's a good chance it lacks modern safety features.
Even if your garage door safety features are in place, they can malfunction if they're not properly maintained. Testing your garage door safety from time to time is important. Best of all, safety testing can be done by you, no garage door contractor needed.