Nope, the Yellow stuff is only good for resistance to water thus the weather strip classification, remember I would use gasoline to get that stuff off my hands. I always would keep a tube of this stuff in my sealer box.
View attachment 233683
The oil and gas resistant brown goo. First used it as a young pup to glue Homelite XL12 chainsaw gas tank halves together (Homelite recommended) Then would use it as the sealer for Harley Davidson crankcase halves. (no gasket required)
If you do use it have fun getting it apart! (takes special skills)
Took me awhile to remember the 'Brown Goo' and search for it as the 3M site is a frigg'in nightmare.
3M™ Nitrile High Performance Rubber and Gasket Adhesive 847 | 3M United States