Yes, you absolutely can. If you win the lottery together with a group of players, you can all split the prize according to the shares you have each purchased.