As with many factors, it depends!
When you are starting out, getting a workout done can be a challenge itself to get started. So don’t aim to do 3 sessions a week when you struggle to get 1 done so best thing I believe is :
Aim for 1 to 2 times of week of good resistance training, doing full body workouts, so you are hitting all muscle groups twice a week.
Try doing 3 to 4 times a week these can be 2 full full body sessions, then upper / lower days. Alternatively you could do a split like push, legs, pull, legs.
More experienced people can look at doing 4 to 5 days.
Remember to have your rest days!