Yes, you can (and should) train endurance and strength at the same time

The benefits of concurrent training are far-reaching and help improve multiple physical qualities, but there are several factors to be aware of.