How to optimize networking for many actors

UKismetSystemLibrary::IsServer am i right that this should prevent all clients from using the function that is in the scope of an if statement with this ?