Function inside a function

Can you have a function inside a function?