Trading with other people’s money

So if I have a friend and both of us like to trade and also invest together, can we open a partnership company for the sole purpose of trading and investment?