Nope. Go into your inventory and hover your mouse over the weapon you want to mod. Up in the top right hand corner of the pip boy, below repair, you'll see Mod, with the button/key you're supposed to press (X on PC). Just press that button and it will let you mod that gun.