Sure they could extend him AFTER the trade. That doesn't increase his trade value though.
Right now, he only has one year of control. Valdez isn't a big enough name that they are going to work out an extension prior to him coming on board. I'm not sure a starting pitcher like him would do that considering the signings this offseason anyway.