Yes, Aviation Permatex can handle exposure to gasoline vapour and the occasional splash of liquid. Constant submersion in liquid gasoline is a totally different matter.
Keep in mind we are talking about a pot of highly flammable liquid, perched right near a part of the engine (exhaust manifold)...