I would argue the best way to avoid plant pest problems is to be vigilant, and proactive, and nip any bug problems in the bud, before they have a chance to spread. To be perfectly clear: repotting plants has no relationship whatsoever with pest problems if you do it at the right time and with care.