While sub4sub isn’t technically illegal, it still violates YouTube’s community guidelines as it is considered spam. YouTube has clearly mentioned it under “Spam, deceptive practices & scam policies”, meaning if you’re spotted using this technique, it could lead to account termination.