No it can't. To combust it needs ~ 500F. If you left it out uncovered in the open and allowed the it to vaporize with a spark nearby, it might explode, but thats not spontaneous combustion. Gasoline sitting in a sealed container wont spontaneously combust.

Didn't everyone have one of those old mechanic friends who liked to put the cigarette out in the can of gas to scare the tourists?

That is definitely one of those “it worked the first 50 times no problem” tricks.

...it was probably diesel not gasoline