How to get embedding for a code snippet using Codex API?

Codex is a fine tuned version of GPT3, is there an issue with using the normal embeddings method?