Yes, LoadGen Studio offers the possibility to add a method to the code. Although it is limited in possibilities from version 4.0.
Free Code action
You can use our 'Free Code' action in the toolbox and start creating your own functions based on C# or VB.NET, pretty much any .Net function can be used as well as the LoadGen Simulation API's.