Basically, yes.
If you corrosive gas your opponent's item, they lose their item permanently as normal. Which means when that Pokemon is out, your Pokemon no longer uses their item, because they no longer have their item. Trick also works as you describe, but also, if they switch out then back...