Sure, but getting the right environment is a prerequisite. In my case it’s a Herman Miller Embody chair [1] that stops me getting into a bad position (it’s not impossible, it just encourages good posture).
[1] https://www.hermanmiller.com/en_gb/products/seating/office-c...
Word of warning: the Embody chair does not have front-to-back adjustments for the armrests. They will be pretty useless unless you like having your keyboard close to the edge of your desk.
I ditched all my HM chairs for a standard wooden chair. They just never felt right (maybe the non-forward-adjustable armrests had something to do with it), but boy are they good at selling you an expensive fantasy.
The embodiment of overpriced and mediocre
Totally a tangent here but it amazes me how a company as big as Herman Miller could screw a product page up so much by not even having a picture of the damn product.