Yes it is. Soccer's offside rule only applies if a player is actively playing. That means if they're involved in the play. So if they're involved in a pass or interfering with the play in any way, they shouldn't be offside. If they're not actively involved, however, they can be offside and it's not breaking any rules. It also doesn't count as offside if a player is on their own half of the pitch. But as soon as they cross that line, the offside rule comes into effect again. And when a player is doing a throw in, the offside rule also doesn't apply to them.