No, you'd be offside if your own team member passed you the ball while you were between the player and their goal. You wouldn't be offside if the other team had the ball.
Football would be a nightmare if players were hanging out in the other team's box, waiting for the ball to be hoofed upfield to them so they could tap it into the back of the net. Offside stops this from happening by making sure that the receiving player is not in front of the opposition's defensive line.