Neck pain from lifting weights, could it be a strained muscle?

See below. Sharp neck pain usually comes from a degenerative joint or disc in the neck. Sometimes it's from a muscle strain or sprain. Early treatment options include a short course of nsaids (advil, aleve), gentle massage, moist heat, and focusing on posture. If pain lasts greater than 2 weeks see your physician.
Yes, it can be, But it can also be from bulging or herniated discs or arthritis. You will need a physical exam to be sure where the pain is coming from. A general rule is if something hurts your neck, such as weight lifting, try avoiding the movements that are causing the pain. Try changing up the routine or taking it easy for a few weeks to see if it gets better. If it does not, see a physician. Hope that helps!