No, you have to attend the class and in most cases the range time. There are some very rare exceptions to the range time portion of the class.
There was a thread around here somewhere a while back about a place that did an online training and you could get an non resident permit for a different state that OK would honor. You would still be responsible for knowing and following the laws for OK though.