Not quite, no. Similar idea, but different details in how fuel filters are configured versus oil filters. The air/vapour bubble taking up most of the filter volume is deliberate; if it weren't there, the carburetor would tend to flood a lot more and worse because fuel pump surge wouldn't be damped out by the "shock absorber" effect of that vapour/air bubble, and fuel expansion with heat would force liquid fuel into the carb.