No, there were efforts to ban TikTok well before Oct 7th 2023 in 2020-2021 by the first Trump Admin, and there was ongoing effort in 2022-2023 during Biden Admin.
TikTok Agrees to Sell U.s. Operations, https://www.tiktok.com/en/trending/detail/tiktok-agrees-to-s... , 25 Dec 2022
Biden approves banning TikTok from federal government phones, https://www.npr.org/2022/12/20/1144519602/congress-is-about-... , 20 Dec 2022
U.S. is 'looking at' banning TikTok and Chinese social media apps, Pompeo says, https://www.cnbc.com/2020/07/07/us-looking-at-banning-tiktok... , 7 July 2020
Are you gaslighting Israel has been committing a genocide long before Oct 7th. Reactions of people after the shock of Oct 7th wore off made Israel to actually do something about tiktok using its Israel lobby. The only one that can get both US parties do what it wants without much debate