For my membership site users may register by invitation

For my membership site users may register by invitation codes only. Is it possible to set up the registration page so that only the subscription to which the user is invited will show. I don't want company A users to be able to sign up to Company B or C etc.
Or can you suggest a way to work around this
Thanks.