Yes, you can collect a race number on behalf of someone else. You will need some confirmation from them (eg a text message) to show they have given permission for you to collect, along with the first line of their address.