In regards to Huawei, yes. But with TikTok, disallowing an app in the US is like banning a thing from being brought into your house. Every country has the right to do it. China does it to Google, Yahoo, Facebook, etc... The biggest difference is that China didn't offer to buy them, which sounds quite insulting.
Competition for the world throne is ugly mucky business. You gotta beat someone fairly, then you gotta beat him again at underhanded tactics, and hopefully, you don't have to beat him a third time in a World War before you've truly won. This is not an honorable game between gentlemen or knights; this is a survival fight for the future of everyone's children.