Yes, prior use can help in certain circumstances, but the extent depends on the jurisdiction.
In first-to-use countries like the US, prior commercial use establishes common law rights even before registration. This can be used to challenge a later applicant who files for an identical or confusingly similar mark, provided you can prove your use predates theirs.
In first-to-file jurisdictions like the EU and UK, prior use carries less weight. It can be raised as a defense if the IP office identifies a conflict with a similar pending application, and it may support an invalidity claim against a registered mark in some cases, but it does not give you the same standing as registration.
In either system, it is more beneficial to register a trademark instead of arguing prior use because prior use is harder and more expensive to enforce than a registered trademark. It requires gathering and presenting evidence of use, which registration avoids entirely.