Not allowed. To ask for a rank, you have to hold at least one card of it yourself1,2. Lying is out too: if you’re asked for a rank you hold, you hand over every card of it.
Why people argue about it
Lots of kids’ decks leave the rule off the box, and someone asking about it on Physics Forums in 2024 couldn’t find it on theirs. The rules also give no penalty for a fib, so as Wikipedia puts it, lying is “difficult to prevent.”
Go Fish runs on trust, and the rules give no penalty for a fib. So sort out 2 things before dealing: may anyone ask for a rank they don’t hold, and what happens when a hidden match turns up later? Fibbers skip a turn makes a caught fibber hand over the cards and miss a turn. One long shot allows 1 such ask a game, announced with “long shot” first. We’d play Fibbers skip a turn with young kids so honesty has a reason.
Play it a different way? Post it so others can vote on it.