This absolutely is possible to do. When you invite your peer to connect to the service, you can send an NSData object to the advertiser. Just convert the pin code to an NSData object and send it to be checked on the advertising device.
You can find the relevant info on Apple's documentation site, with the context
variable. Let me know if you need more guidance.
- (void)invitePeer:(MCPeerID *)peer
toSession:(MCSession *)session
withContext:(NSData *)context
timeout:(NSTimeInterval)timeout