Answer
Yes, $y=5$ is a linear equation.
Work Step by Step
Yes, $y=5$ is a linear equation. Since there is no $x$ term, that indicates that there is a slope of $0$, and the line is horizontal. That does not, however, mean that the equation is not linear.