Yes, pineapple plants can be overwintered indoors. Choose a bright, sunny window (probably facing south, if available), and water only as needed (about once a week). Try to keep the humidity high in the area immediately surrounding the pineapple, either with a tray of moist gravel with the pineapple plant raised above it (not sitting in water!), or frequent misting, or use a humidifier. You can also use less light and even less water and allow the bromeliad to go somewhat dormant during the winter months, then resume regular watering when warm temperatures return (60 F or higher) and place it in bright filtered sunlight, preferably outdoors.
Do the plants at Home Depot have pineapple fruit on them already? If so, the plants will most likely die after the fruit is fully ripe (as do most bromeliads), but you can cut the top off the pineapple fruit after you eat the pineapple and start a new pineapple plant.
Thanks for your interest! I hope it works out for you.
I live in Nova Scotia Canada and have grown a pineapple from a top cut from a fruit that we ate. It takes a few years but we did get a very tasty but rather small pineapple. The plant was always in a south facing window..