Olanzapine can affect sexual function in some individuals, leading to changes in libido, arousal, and orgasm. If sexual side effects are a concern, discussing potential alternatives or adjustments in medication with a healthcare professional is recommended.