Yes. We are becoming more relaxed about this, but generally people still avoid contractions in formal writing. The more formal the writing, the less acceptable are contactions. If in doubt, don't contract, do not contract.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: