As others have stated, it's your choice. However, be aware that most predators are savvy as to your human presence, knowing when you're around and when you're away. More bad stuff is therefore more likely to happen when you're away.
I live in about as wild an environment as it comes, surrounded by mountain lion, bobcat, raccoon, skunk, rattle snake, bear, badger, weasel, well, you name it, I'm probably surrounded by it. I'm here all the time, rarely leaving except to go down the mountain for provisions, so when a varmint comes around, I'm here to fight it off, and I've literally done that. One time a bear was intent on finding a way into the chicken pen and I couldn't chase it away, so I grabbed a big rock and went up to it and dropped it onto its back. Okay, I kind of lost my head, but it did run off then. Other times I've shot rubber shotgun loads at retreating bear ass, which is the preferred method, safer and more effective.
My friend, who has some of the chickens I've raised, lives seven miles and two canyons away from me, and works every day in town. Over the years, she's lost several chickens to bobcats and bears while she's been gone and her chickens are out free-ranging. She loves her chickens as much as she would human babies, but she has "confinement issues". She just can't bring herself to pen them up while she's gone. So she's resigned to severe emotional distress from time to time when she loses one to a wild animal.
I, myself, have no problem locking my flock in their heavily secured and electrified pen when I leave, even going out of sight of the house, especially when the bears are awake and wandering around. I couldn't live with the anguish of losing one to a violent death.
So you decide if you're up to chancing it or not.