You can capture a panoramic image with any lens and any camera.
You just take multiple images that together cover the entire scene you are trying to capture and combine them in software.
There are many programs that can automatically stitch together the images to create the panorama with a wide range of price and capabilities all the way from Photoshop to free and open source tools.
Tips for shooting panoramas:
Use a tripod
Leave a lot of overlap between images (around 30% overlap is enough to safely work with any software).
Use manual exposure, manual white balance and manual everything so the settings don't change between pictures.
In the past you had to make sure you rotate the camera around the lens entrance pupil, today software is so good it's not that important in most cases.