I think the best answer is it depends. And there is no right or wrong answer.
Basically a microservice encapsulates the business logic specific to a domain (order, email, user, etc).
Generally speaking it is a good idea to have a separate database for each microservice in order to have better decoupling.
If that database, for a clear reason, is a relational database (it can be any database) and the JPA is becoming helpful (defining relations, having transactions, etc.) then you should definitely use them. An alternative could be to use directly the JDBC.
In a microservice architecture you basically lose the transactionability and to achieve a something similar is by far more difficult.
Keep in mind that microservices add a lot more complexity to your projects, in all aspects.
With this context in mind, coming back to your question, you should use it if you need it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…