It can be, if that function has dependencies. Network communication is not a trivial thing to implement.