Yes, it is the same terminal (and even if it were not, they are 5min walk apart).
However, I think TAM is using terminal 1, asa B, and GOL uses terminal 2, so probably can't use that lounge (there is an airside corridor linking the two terminals, but I don't think they'll let you into the GOL's lounge if flying TAM).