In my view, the nursing as a profession as a whole is of two minds on this. Many strongly believe that at least of year of hospital experience is needed to essentially "complete" one's nursing education before moving onto other areas of nursing. Others strongly believe that hospital experience is NOT needed to work in other areas of nursing. So you likely won't find a clear answer to your question.
You'll have to decide what's best for you based on what information you can get.
If you're the type of person who can go out there and make a job work, then you could probably find a niche in nursing without hospital experience after graduation. If you're the type of person who prefers more structure and guidance when starting out in a new job/line of work, then it would be more difficult to find that outside of bedside care as a new grad.
A nursing degree is sort of like a college degree in that it opens the doors for many jobs, but it doesn't guarantee that you'll get the job you want or that you'll feel prepared or competent for the job you want. A college degree is a minimum requirement for many positions, but a college grad without work experience will likely only be considered for entry-level office work, not marketing manager or design editor etc, though those might be ultimate goals. Of course, there are exceptions.
A nursing degree is a minimum requirement for many positions but a new grad without much experience will likely only be considered for entry-level bedside care. There are exceptions, of course. And with the high demand for nurses, experience requirements may at times be reduced.
Some people go into nursing with the plan to become an NP or public health nurse or some other non-bedside nurse. And some make it happen without working bedside. But if you can't find the job you want or get into a grad program right out of school, bedside is pretty much the default option til what you want comes along.
It's great that you are thinking about this! There are many graduates of nursing programs
who leave the profession after just a few years. Of course, there are also many who make a satisfying, lifetime career of it.