With a 5 inch telescope, you can view planets, the moon, and other celestial bodies. You can also get detailed views of star clusters and nebulae, but galaxies will be difficult to discern because they are so far away. With practice and skill, it's possible to see faint smudges or blur that could represent a distant galaxy.
While it is possible to see galaxies with a 5 inch telescope, it will be difficult due to the small amount of light that can be collected. With enough practice and skill, you may be able to spot a few galaxies, but most of them will appear as faint smudges or blur. For the best views of galaxies, you'll need a larger telescope.
There are a number of excellent 5 inch telescopes available on the market. The Celestron NexStar 5 SE telescope is an excellent choice for beginners as it’s easy to use, intuitive, and very affordable.