Yes it is a capacitor; a film cap of some type (polyester probably as they are most common, but maybe polypropylene or polystyrene).
The '104' is the value - 1, then 0, followed by 4 more zeros. So it's a 100,000pF or 0.1uF cap (2 ways of expressing the same value).
Hope this helps.