Please answer the following question with true or false, question: can you make an electromagnet with ac current?

Answer format: true/false
Answer: true