No, inactive clients do not count towards the client limit of your subscription plan. So if you're running out of space on your current plan and don't want to upgrade, you can deactivate some of your existing clients, then add new ones.
It's up to you whether you want those deactivated clients to still be able to log in to the system and access their records - and they still won't count toward your subscription!