Obstruction of justice is somewhat similar to accessory after the fact, but being charged with one does not mean being charged with the other. If you take actions to interfere with or impede a criminal investigation (including committing perjury), you can be charged with obstruction of justice. Similar to accessory-after-the-fact charges, charges for obstruction of justice are often used to pressure someone to testify.