Struct and complex logic

So you recommend using functions in struct for data transformation not for logic using it , like high level business logic dealing with other context modules ?