pour boiling water into it, the water immediately begins mixing and cooling.
That may reduce the temperature reaching the plumbing.
However, it doesn’t eliminate all risks.
The safest approach is generally to avoid deliberately exposing uncertain plumbing components to extreme temperature changes.
If you need hot water for cleaning, letting it cool somewhat before pouring it into the drain is a simple precaution.
How to Prevent Drain Problems in the First Place
Preventing a clog is much easier than trying to remove one.
Keep grease out
Don’t pour cooking oil