Yes, you can. One of our customers is using JFR alongside Dynatrace.
JFR cannot be used within Dynatrace at all. But OneAgent provides much more than JFR has to offer so I believe if you have Dynatrace, you don't need JFR at all. It's mostly just a habit for users that have been using JFR for years to continue using it.