I would think so! but how could you fart while being exposed to space? It would need to exhaust out your space suit to propel you.
Ok. if you were to fart in space, provided you could breath outside containment, for the second or so that your anus is opened expelling the fart, the real question becomes,,,would the vacuum of space use that second or so to pull your guts out your ass?
All jokes aside no it will not propel you