If it's a dependent clause, it's fine. } It shoudn't stand as a sentence if there is no independent clause. In casual writing and in speech you can get away with it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.