Maybe. It’s up to the TD. You may be penalized for the OB because that is the correct ruling for that throw. However, you should not be penalized for having played from an incorrect lie (misplay), as you played according to your group’s ruling. If there is doubt about whether a ruling is correct, you should consider playing a provisional.