Should a young professor avoid using dating apps?
Professors both young and old are known to use dating apps. So do students, doctors, engineers, lawyers, dental hygienists, and any other kind of person. In other words, there is nothing about being a professor that disqualifies one from using dating apps (or that makes one a special kind of human being in any other way, contrary to what seems to be the popular belief on this site at least).

The only pitfall I can think of is mild embarrassment, but that's true for everyone using these apps whether they are a professor or not. My advice is, go out there and have fun, worry about yourself and don't care too much what other people think. And if you want to date students too, personally I don't see a problem either (especially considering your age) as long as they are not your students and you otherwise behave ethically and responsibly.

(Edit: in certain U.S. institutions there is a general prohibition on faculty dating undergraduates - thanks to @EllenSpertus for the reference in the comments. Given your stated age preference this is not very relevant to your question since students in that age range would typically be graduate students, but it's worth at least checking the policy at your institution to make sure you are aware of the rules.)