Screenshots are an important feature for the user to have available at all times for a number of reasons – including the protection of their own privacy.
A screenshot cannot capture anything that the user themselves have not already gained access to in some way, And as Claude31 pointed out, you can always use a secondary device to capture the same information if you are sufficiently motivated. As such blocking same-device screenshots is not very valuable in a world where everyone has a camera.
Fundamentally, users have a lot of use cases for taking screenshots. As developers it is not really our place to question their use cases. If you have a use case where taking a screenshot would be a bad idea, then it may also be an opportunity to provide a user experience that is better than doing so (for example discouraging users to screenshot private information by making is easy for them to access that information at any time). But do consider it from the user's POV – just because taking a screenshot of "super secret password" may be a bad idea, doesn't mean that they won't just do something worse if you block them from doing so.