we know that
the equation of the line in the standard form is equal to

case a) If the term a is equal to zero
then
-----> is the equation of the line parallel to the y-axis
There is no y-intercept
case b) If the term b is equal to zero
then
-----> is the equation of the line parallel to the x-axis
There is no x-intercept
therefore
the answer is
Yes, it is possible