Foundation program in Uk

As an international student, I’m looking to study medicine in the UK;however, I have missed the deadline for UkCat so I don’t think I can get into a university as an undergraduate. If I go through a 1 year foundation program, am I able to apply as an undergraduate after?
Thanks.