
Yes, to an extent. You can limit certain functionalities or block access altogether, as detailed here: https://learn.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices#limit-access
Do note that nothing can prevent the user from taking a screenshot, or snapping a photo of the opened document with his smartphone. So if the goal is to secure access to some documents, best look into AIP.