If your time is limited, you’ll often have to combine sessions. Endurance work can blunt strength gains somewhat, which is known as the interference effect.
Rules of thumb that work in practice:
Leave at least six hours between sessions if you can
If you do both in one session, put whichever is less of a priority right now second
Put hard intervals and heavy lifting on the same day so your easy days stay truly easy
A common follow-up: “Can I lift after an easy run?” Yes. A 30-40 minute easy run barely affects a strength session. The problem is heavy lifting straight after a long or hard endurance session: quality drops and injury risk goes up.