Yes you can do it – a couple of things to watch out for tho…
If you stay with the 32 middle, and put a 36T bash, my experience was chain rubbing on bash when in small end of cassette.
If you upgrade the middle chainring to 36T, I suggest getting the M665 36T chainring rather than any old 36T ring. It’s designed to work on a double/bash setup and has a different profile to improve shifting, avoid chain rub, and prevent chain jamming between rings.
Consider the M665 double specific front mech. Not essential, but I found it did away with all the fiddly adjustments required to get the triple front mech to work right with a 22/36 setup.
Lastly, I tried three different bash rings on my setup – the Shimano M665, Raceface Lite ally, and E-13 Turbo Charger plastic. The M665 wont fit the standard M660 cranks, the Raceface looks slick and doesn’t need longer bolts to fit, but I ended up using the E-13 because it’s just much more chunky (and yes it comes with longer bolts).