I know we can find out the electric field using the electric field $E=\frac{KQ}{R^2}$$$E=\frac{KQ}{R^2}$$ taking small element $dq$ and finding the electric field by integrating the value of $dE$ over the circumference which will be $E=\frac{kxQ}{\sqrt {(a^2+x^2)^3}}$$$E=\frac{kxQ}{\sqrt {(a^2+x^2)^3}}$$ where $a$ is radius of ring and $x$ is distance of point $p$ on the axis of the ring. Can we find the same using the Gauss law?