It will work provided the wire is roughly compatible (that's a "no duh!" answer, I realize).
Typical wire meant for RJ-11 jacks is around 24 AWG. Some RJ-11 jacks are spec'd to work with 24, 26, or 28 AWG. You'll have to look at the actual part you're planning to use and either read the spec and/or try it. Look also at the design of the insulation piercing part. If it has two teeth, one on either side, and captures the copper in the "V", it's meant for solid wire. If it has teeth (or tooth) that hit only the middle of the copper, it's designed for stranded. Most phone wire that had RJ-11 plugs on it was stranded.