Correct connections: 7-segment, 4-digit display with common anode
That circuit looks OK to me.  It will allow you to light (reliably) a single segment at a time.  The A* pins will be used in digital output mode.

The A* pins are connected to the four anodes of the digits - each digit has common anodes for all the segments.  They should be driven HIGH to 'select' a digit.

The D* pints are connected to the cathodes of each segment.  They should be driven LOW to light that segment.

For example, to light the 'A' segment of the first digit, you would set:


A1 HIGH, to drive the anode of the first segment
A2, A3, A3 LOW, so that the other three segments are not driven
D5 LOW, so that current flows from A1 to D5, lighting the digit
D6-D12 HIGH so that no current flows from A1 through any of the other segments.


The expectation is that you will cycle around (very fast), lighting each required segment on each required digit in turn.

Without a (proper) data sheet we can't tell you what the correct resistor value is, but the 220R shown is probably OK.