Hi, I'm Ashik. Welcome to JustAnswer. I'm reviewing your question now, and will post back with your reply ASAP
Yes, you can if your Mac can support it. To see if it can support it, click on Apple icon and select App Store. Click on Updates tab. If you see El Capitan there, then you can click Free Upgrade button to install it.
It will take a few hours to download and install it. If you have any questions, please let me know