Yes you can - see ConfigurationManager
The ConfigurationManager class
includes members that enable you to
perform the following tasks:
- Read and write configuration files as a whole.
Learn to use the docs, they should be your first port-of call for a question like this.