It has a role in the sense that, without it, the UK was unable to negotiate trade deals on its own behalf.
The UK trade restrictions only applied to the Eurozone. They always had the ability to form their own trade relationships outside of Europe. Brexit wasnt needed to make deals in Africa.