Is it relevant to pursue a master degree or a doctorate when applying to a job in the petroleum field?
Professional careers in the petroleum industry can be very competitive, so a higher qualification such as masters degree could make you a more attractive candidate for a scientific or engineering position. Many companies nowadays specify post-graduate qualifications as necessary or desirable.

A PhD is generally preferred for research positions.