Verifying signatures inside a Solana program

Is it possible to verify a signature inside a Solana program?