The short answer is yes! You can use anything with a tight lid, to replace the shaker. Another option would be to use a cup filled with ice, add simple syrup, whiskey, and lemon juice,  stir with a spoon, and strain into your cup over fresh ice.