It's not a dumb question, but no, the bees aren't attracted to the jam, or most other sweet things you could use (with the exception of honey!).
A similar sort of cheap diy wasp trap can be found here.
They do fill up quickly so need checking regularly; otherwise you've just introduced an...