Of course. But what people call a "quality" film is often defined by social expectations and what people believe a quality movie should be based on other people's preferences.There are lots of ways to measure quality other than it was successful at its creator's goals. That made it a quality film for them, but subjectively you could look at it with other metrics in mind and the quality will shift up or down depending on the film's success at these new metrics. For instance, if I were to take Age of Ultron and choose measure whether it was a quality Romantic Comedy, it would do very poorly.
To me it's all subjective. A Ford F-150 may be a high quality vehicle to a lot of people while while I think it's an oversized tank that serves little purpose other than being hard to park in my garage.