Bitcoin transaction is anonymous but traceable. Many wallets and exhanges are now linked to your bank account and ask you to furnish personal details beforehand. Hence, If needed they can trace you easily.

You can avoid it by buying BTC in cash.