No, you cannot create a polygon programmatically.