I'm a U.S. native speaker. Prostitutes "turn tricks." I have _never_ heard "trick" used to mean any other kind of work.
The commonest use of the noun "trick" is "a deception;" of the verb "trick," "to deceive." The deception can be just a joke or it can be serious fraud.
"The magician seemed to pull a golf ball out of his ear, but of course it was just a trick." "They only were able to balance the budget by using accounting tricks."
A "trick" can also be a clever shortcut that is so easy it feels like cheating. "A quick trick for finding out if an egg is raw or hard-boiled is to try spinning it." "You can borrow my car, but there's a trick to starting it. You have to wiggle the key a bit."
In some card games, such as bridge, a "trick" can be a group of cards that is captured or won by a player.