Decoding bit streams using Hamming Code
There are many equivalent Hamming codes depending on the ordering of parity and data bits. 
Assuming that:


You are using the specific bit ordering described here: https://en.wikipedia.org/wiki/Hamming_code#General_algorithm
By "even parity" you mean that the parity bits are computed as the sum (modulo 2) of the corresponding groups of bits
By "odd parity" you mean that the parity bits are computed as 1 minus the sum (modulo 2) of the corresponding groups of bits,


then yes, your simulation of the algorithm is correct.