The principle, yeah. But I haven't done it in Godot yet.
I'd suggest a text node that is animated in both position and alpha channel, as well as a timer. The text is displayed on condition at its spawn position, then slowly translated away while blending it out, possibly leaving it full alpha a few seconds to give the player enough time to grasp its meaning. You can hardcode the blending and moving, or have a timer/timers control it.
Maybe there are other solutions.