You can but shouldn't disable security defaults using the Free version of Microsoft Entra.
At a bare minimum, you can purchase a single Microsoft Entra P1 license and then disable Security defaults in favour of Conditional Access, where you can make exceptions. However, for any user impacted by Conditional Access, they will need to be assigned a license.
I hope this answers your question!
Kind regards
Daniel