You can, if the spell has both S,M components, as you can sign the somatic components with material component or spell casting focus in hand. Hence, if you can use a weapon as a spell casting focus (e.g., Bladesinger, Warlock Pact of the Blade, with a Ruby of the War Mage, or using a...