You can resit any failed modules but the university may cap the resit mark at 40%. Thus, even if you ace the resit and get 70%, it will show as 40% on the records. Normally 1st year marks do not go towards your final mark so you have dodged a bullet. Lesson learned, make sure you pass your 2nd and 3rd year modules.