Is it okay to apply neosporin on the lip?

NO. Throw it away. Aminoglycoside antibiotics used on skin have not been shown to treat or prevent infections. They are sensitizers, causing allergic reactions. They promote emergence of antibiotic-resistant bacteria. If you have a wound, vaseline or Aquaphor is superior. You forgot to indicate the reason for using it.