Definitely yes, 45 minutes of focused weight training can be enough, especially if the loads and exercises set are well-structured. It is important to prioritize compound exercises, minimizing excessive rest periods and practicing progressive overload. In this case a 45-minute session will be effective for building both strength and muscles.