yes you can. Read the license :)
> Hi,sorry for my English.
> I would like to know if i can use PostgreSql for my commercial software.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>