Individual wires are not rated for exposed runs. They have to be protected by a conduit, jacket, or raceway.
This answer is intended to apply to Romex? Brand NM Cable. For other NM cables, please check with those respective brand suppliers or cable manufacturers. Romex? is a Registered Trademark of Southwire Company. This communication is for general informational purposes only and is not intended to constitute advice. As all the facts and circumstances in any given situation may not be apparent, this communication is not intended to be, and should not be, relied upon by the reader in making decisions with respect to the issues discussed herein, and the reader assumes the risk if he or she chooses to do so. The reader is encouraged to consult an expert before making any decisions or taking any action concerning the matters in this communication. All warranties, express or implied, including warranties regarding accuracy, adequacy, completeness, legality, reliability, safety or usefulness of any information, ARE DISCLAIMED. Southwire Company is not liable for any damages however caused and on any theory of liability arising in any way out of the information provided or the reader's use of it.