Yes, "The longer you leave it in, the better it will taste" is correct. It's normally written with the comma after the first part, as shown. It is an idiom, so it doesn't necessarily fit with the general rules of grammar.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.