We derive a so-called gap equation for superconductivity in a quasi-one-dimensional (Q1D) layered conductor in a magnetic field, which is parallel to both its conducting plane and its conducting axis. This equation demonstrates that the orbital destructive effects against superconductivity cannot destroy it, if the perpendicular to the plane coherence length is less than the inter-plane distance. On the basis of our results, we suggest arguments that some triplet superconducting phase was indeed discovered in ultrahigh magnetic fields in the Q1D superconductor Li0.9Mo6O17 [see Xiaofeng Xu et al., Phys. Rev. Lett., 102, 206602 (2009).] We also discuss a possibility that the above-mentioned superconducting phase can be stable at arbitrary high magnetic fields.