I highly doubt when someone is undercover they need to say yes when you ask him if he is a cop haha but it would definitely be epic. I see undercover feds as the ones that can get away with such things and kinda sure they would say no to it. But i did not work in law enforcement carrer to know the details.
It definitely is something to think about since why would they do that, what is their agenda on that.