It depends on the race. Some 5K races have a participant limit,
and some don't. The limit could be anywhere between 500 and several
thousand runners. You could email the race organizers if you really
want to know the limit (if there is one) for your specific 5K.