Your sophomore year grades are still significant, especially if you have a pattern of strong or weak grades across multiple subjects. Colleges will look at the trend of your academic performance. A dip in grades sophomore year might not be a dealbreaker, particularly if you can show improvement in your junior year or provide a reasonable explanation (e.g., a challenging personal circumstance).
Your senior year grades are also important, as colleges often require final transcripts before you officially enroll. However, the weight given to senior year grades varies among institutions. Some may have already made their admissions decisions before seeing your senior year grades.
In short, focus on doing your best in all your years, but concentrate particularly on performing well in your junior year. If you're concerned about your sophomore year grades, focus on improving your study habits and academic performance in your junior and senior years to demonstrate a positive trend. Don't let worry paralyze you; focus on what you *can* control.