I'm presuming from what you say that those two modules are worth ten credits each? If so, then yes, you should qualify for the next year, as to get an honours degree at the end of your degree you need to have passed 100 credits per year. I failed a ten credit elective in first year and I'm about to start my final term.
Are you in first year? If so that's fine as it's not going to impact your classification, however if you're second year onwards then i would really try and make an effort to get them passed as fails are likely to bring your final classification down.