You can splice any code recognized method onto another method.
However, there are some applications where the type NM would not be suitable, such as a recessed light junction box or any of the modern lights that have the minimum 90C wiring requirement on them.