Graduate studies are a great experience. In my experience, it was much more practical learning to equip you with skills to use in work settings. You also get to meet so many people who are in the same field and diversify your network.
Undergraduate research opportunities come highly recommended as they offer individuals a direct glimpse into the world of research and academia, allowing them to evaluate their own inclinations towards this field. Pursuing a PhD is not a path suited for everyone. A fourth-year project can serve as a litmus test to determine if this path aligns with one's aspirations. If it doesn't, one can easily leave without further commitment. However, if it resonates, exploring the possibility of joining a research group that fosters a strong connection becomes crucial. While enjoying the research itself is important, equally important is finding enjoyment in the people one works with, particularly their principal investigator.
As a graduate student it is important to be flexible and adaptable to change as you work through your degree. Becoming a graduate student allows you to develop your professional brand, while contributing to academic literature.