Would doing some chest press and curls be okay for someone with a stiff and painful neck?

Would doing some chest press and curls be okay for someone with a stiff and painful neck?
Post Opinion