Liable for violating US law in another country?

When American citizens abroad use drugs, solicit prostitutes, and commit other actions that violate US laws, could they legally be arrested by American law enforcement? That is, even if the act is legal in the foreign country in which it was committed.

Found this:

(PDF Warning.)