If your dryer won't spin, the short answer is no. The spinning action is crucial for properly drying clothes, ensuring they tumble and get evenly exposed to heated air. If the drum doesn't spin, your clothes will not dry.
Diagnosing and addressing the problem causing the lack of spinning is recommended before attempting to use the dryer again.