Yes and no.
They can do forensic analysis of your computer to determine where you went on Tor.
If you use Tails this isn’t a problem.
Otherwise, when you connect to Tor, not even your ISP or the police can determine what websites you’re visiting, unless the police own those websites themselves and are running exploits.
Can Tor be traced?
Tor browser is very effective at hiding your location and preventing your traffic from being tracked. It’s almost impossible for your online activity to be traced through Tor’s network back to you. However, Tor browser is not entirely secure. The system has a few weaknesses.
Can the FBI track Tor?
Tor has been a thorn in the side of law enforcement for years now, but new work from Wired’s Kevin Poulsen shows the FBI has found a new way to track users across the network. As a result, agents were able to track at least 25 users back to home addresses and subscriber names.
Can police track VPN?
Simple, they can see if you are connecting to a VPN server, courtesy of your ISP. They approach the VPN company and ask them to monitor you. If the VPN company is under their jurisdiction or would simply cooperate then they can hand over your activity logs. These companies can track you even if you use VPN.
Is Tor still anonymous?
The answer is no. It is not illegal to be anonymous, and Tor has many legitimate uses. The dark web itself is a powerful tool to protect privacy and free speech. Tor is an open network of servers run by volunteers and free software (the Tor Browser) that is guided by the non-profit Tor Project.