Default [Q] 3 headset buttons for moto G

Does 3 headset buttons (like bose, samsung ....headsets) work in moto g custom roms or stock ?