No it won't, not unless it's specifically addressed in the law.
The EU (or at least most of it) has banned SIM locks a long time ago, but carrier-branded Android phones are still a thing.
In fact, the situation here is even more pernicious, there have been news reports[1] of carriers being able to remotely lock your phone down if you stop paying the bill, or if you buy it used and the first owner stops paying the bill.
[1] Polish https://niebezpiecznik.pl/post/plus-instaluje-cos-na-ksztalt...