Il y a un piège.

Can I use this figuratively like “There’s a catch”, about an idea or a plan?

I’m not a native speaker, but I think so. Reverso gives all these translations:

and my assumption was that several of the Clozemaster sentences that use the word were figurative rather than literal, including this one.