How do I maintain Thai Basil ?

I recently bought a Thai Basil plant, and it already has little flowers on the top. Should I be cutting these off?  A friend had some lettuce plants that grew very tall, almost 2′ high, and had flowers on the…