No it is not when it is related to godly sorrow.
This memory verse supports God correcting what he loves. Hebrew 12:7-8 NIV
Endure hardship as discipline; God is treating you as his children. For what children are not disciplined by their father? 8 If you are not disciplined—and everyone undergoes discipline—then you are not legitimate (KJV say BASTARDS), not true sons and daughters at all.