90% of what you do in C# (or any OO language for that matter) is in functions.
I am not sure exactly what you are asking though - I know you are new to C#. You ask if you can put some repetative code in a function and call it over and over instead of coding it everytime. But coding it every time is writing a function every time and calling that code is calling a function - so it is the same principal in c#.
If you could be a little bit clearer or give some small code of what you are trying to do I will give you a better answer to get you on your way. :)