Probably not. You would most likely have to provide supplementary light, if you wanted the plant to produce fruit. I think they need a full 10 or more hours of bright light each day.
I understand that it takes about 2 years of careful treatment to get a pineapple to flower, and that involves forcing flower production during December of the second year. I haven't grown one, myself, though, so that's just second-hand information.
"Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?" - Douglas Adams