For the most part it is the same,
But in reality in a secondary leaving group a weak nucleophile but strong base ( -OR) favors E2 and weak base Strong nucleophile (CN) favors Sn2
But I don't have the problem in front of me so I don't know the context.