IF:
the chain line is fairly straight (within a few mm)
both cog and chain ring are the same width
all components are of approximately equal wear
the chain tension is adequate
the chain is appropriate for your gears (1/8" for 1/8" or 3/32" gears, and 3/32" for 3/32" gears only)
THEN:
your chain won't fall off.