If it's the same terminal you technically, should be able to walk directly from one gate to the next. I'm not sure how it would work with going from domestic to international without checking in for the international flight. If you have to check in for the international flight at the main desk and "not at the gate" then you won't have enough time since you will have to take the tram to the main terminal, go to the check in, go back on tram and then go through security to get to the departure gate.