Can two teams merge during the competition?

I and my friends are about to start a competition now, and we are preparing to split into two teams to try individually first. If we find in the later stage of the competition that we cannot complete a project on our own, we two teams will then cooperate and merge into one team. Is this allowed by the competition organizers?

PS:The merged team will not exceed five people.