Yes, lavender can be used to keep mice away. Mice find the scent of lavender unpleasant, so you can try spraying a mixture of water and lavender essential oil around your home. You can also place lavender sachets in areas where mice are likely to be.