If you need needles to inject medication, it's OK to have them in your carry-on. But this is only if you have your injectable medication with them. If you plan to use your medication during the flight, bring a small sharps container to put your used needles in.