I've read that it does not and I have read that it does.
When I eat under-ripe pineapple my tongue swells and my throat sort of closes up for a few days! I also get "burned" from the acid (my tongue and lips).
My grandfather bought a pineapple at the store and said I should have it. But it is green and so I bet it is certainly unripe.