You can, and it’ll help save you from toilet paper clogs. It’s not a cure-all and you still need to keep the black tank valve closed otherwise you can have a poop build up called a Pyramid of Doom.
But frankly, putting my poop covered toilet paper into a trash can makes me throw up a little in my mouth. 10+ years RVing, we test toilet paper in a glass of water to ensure it breaks down in 30 minutes or so with minor agitation.
Only time we ever had issues was when we didn’t use enough water. Use plenty of water when pooping! That alone is the real trick to not having issues.