Yes, of course I agree with that. It is in God's word. But in 2 Timothy 3, Paul isn't writing about pastors and teachers:
NKJV 2Ti 3:1 But know this, that in the last days perilous times will come:
2Ti 3:2 For men will be lovers of themselves, lovers of money, boasters, proud, blasphemers, disobedient to parents, unthankful, unholy,
2Ti 3:3 unloving, unforgiving, slanderers, without self-control, brutal, despisers of good,
2Ti 3:4 traitors, headstrong, haughty, lovers of pleasure rather than lovers of God,
2Ti 3:5 having a form of godliness but denying its power. And from such people turn away!
2Ti 3:6 For of this sort are those who creep into households and make captives of gullible women loaded down with sins, led away by various lusts,
2Ti 3:7 always learning and never able to come to the knowledge of the truth.