It does not. A soft credit inquiry can be pulled even if your credit is frozen. A credit freeze only prevents hard inquiries.
Note: Most lenders will not approve you for new credit with a credit freeze, even if they are able to initiate a soft pull.
Related Posts: Ultimate Guide to Credit Reports: Freezing Your Credit Reports