If you were previously employed then yes the company formation expenses can be included in your costs.
If you were previously a sole trader the company formation expenses can be included in your costs but any pre-company expenses should be included in your sole trader accounts as you will effectively be getting more tax relief, as the rate of tax/NI is higher.