Cassandra's answer is correct as far as it goes. Here is a bit longer answer:
The statement, "Tommy and Matthew are good friends" is neither a cause or an effect. It depends on the context.
In "Tommy and Matthew are good friends, so they went on a holiday together",it is a cause.
In "They both love soccer, so Tommy and Matthew are good friends", it is an effect.