Yes, but not quite that simple. There is a lot of misinformation flying around the internet. It mostly seems to be coming from people that don't understand the difference between "gasoline" and a "gas" (as opposed to a liquid or solid). Not all countries use the same colors, but in the US, the yellow color indicates the tape meets the standards for use with gases, like natural gas or LP. Typical white PTFE usually meets the standards for use with propane except for the thickness. For more detail, take a look here:
NC Fire Codes Q&A
Page 3 covers the essential points.
NOTE THAT ALL OF THIS HAS ABSOLUTELY NOTHING TO DO WITH GASOLINE.!