It is. You can use the `setl` instruction to conditionally set a register depending on whether the previous `cmp` was less. Then, you simply do an `add` with the produced value, which is either 0 or 1.
EDIT: You can see this here https://godbolt.org/g/ssy4am