Yes, a law was just created specifically so that tiktok could be in violation of it. Before today the platform wasn't in violation of any law and there is still nothing unique about what they've been doing compared to US owned platforms, and while their existence as a non-US owned platform has been made illegal TikTok itself wasn't doing anything illegal as a Chinese owned platform.