Should your pocket square match your tie?
It should go with your tie, not match it. A pocket square in exactly the same fabric and colour as the tie, as in ready-made sets, looks too contrived. The easiest approach: pick a colour that appears in a small way in your tie or shirt and repeat it in the pocket square.
If in doubt, a white linen or cotton pocket square is always right, with any suit and any tie. Fold it straight, with about a centimetre showing above the pocket. Vary the material too: a silk tie with a linen square, for example. And if your tie is bold, keep the pocket square quiet. Which tie suits your suit is covered in What colour tie goes with a navy suit?.