Quite right. The flag in question is the Union Flag.
The flagstaff at the bow of a warship is called the Jackstaff, and the flag which is flown on it is therefore referred to as the Jack. This is not unique to the Royal Navy, it's also true on ships of the US Navy for example, who also call the flag flown there the Jack.
A bit more detail
here.