If you don’t have a grill, you can absolutely cook shrimp in a pan. Just heat up the pan before adding the shrimp and cook them for about 2-3 minutes per side until they are pink and opaque.